package com.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author
 * @Description:
 * @date 2021/4/18 11:06
 */
@Data
@ApiModel
public class HomeAppConfig implements Serializable {

    @ApiModelProperty(value = "主键ID")
    private Long id;
    @ApiModelProperty(value = "应用ID",required = true)
    @NotNull(message = "应用ID不能为空")
    private Integer appId;
    @ApiModelProperty(value = "应用名称",required = true)
    @NotBlank(message = "应用名称不能为空")
    private String appName;
    @ApiModelProperty(value = "应用类别 0软件 1视频 2音乐 3广告 4书籍",required = true)
    @NotBlank(message = "应用类别不能为空")
    private Integer appCategory;
    @ApiModelProperty(value = "图片地址")
    private String img;
    @ApiModelProperty(value = "是否h5应用 0-否 1-是")
    private Integer isH5APP;
    @ApiModelProperty(value = "h5url")
    private String h5Url;
    @ApiModelProperty(value = "广告地址")
    private String advertisingUrl;
    @ApiModelProperty(value = "排序",required = true)
    @NotNull(message = "排序不能为空")
    private Integer sort;
    @ApiModelProperty(value = "是否上线 0-否 1-是")
    private Integer isOnline;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
